package com.xgx.mp.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xgx.mp.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserDao extends BaseMapper<User> {
    @Select("select * from user ${ew.customSqlSegment}")
    IPage<User> selectPageVo(Page page, @Param(Constants.WRAPPER) Wrapper<User> queryWrapper);

    List<User> selectCustomSql(@Param(Constants.WRAPPER) Wrapper<User> queryWrapper);
}
